﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace homework5
{
    class Program
    {
        static void Main(string[] args)
        {
            double number1;
            Console.WriteLine("请输入一个正数");
            double number =  Convert.ToDouble(Console.ReadLine());
            if (number > 0)
            {
                number1 = Math.Round(number, 0);
                Console.WriteLine(number1);
            }
            else
                Console.WriteLine("你输入有误");
           
            Console.ReadKey();


        }
    }
}
